<!DOCTYPE html>
<!--
     SPDX-License-Identifier: CC-BY-SA-4.0
     SPDX-FileCopyrightText: 2020 seL4 Project a Series of LF Projects, LLC.
-->
<!-- Page last generated 2025-02-20 03:16:15 +0000 -->
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>PC99 | seL4 docs</title>

    <!-- Our stylesheet and theme stylesheet.  Contains bootstrap. -->
    <link rel="stylesheet" href="/assets/css/style.css" type="text/css">
    <!-- Font awesome -->
    <link href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
    <!-- Pygments syntax highlighting  -->
    <link rel="stylesheet" href="/assets/css/highlighting/trac.css" type="text/css">
    <link rel="icon" type="image/x-icon" href="/assets/favicon.ico"><script defer data-domain="docs.sel4.systems"
	    src="https://analytics.sel4.systems/js/script.js"></script></head>

  <body class="container-fluid">

    



<header>
  <ul class="row menu">
    <li class="col-xs-12 col-md-2" >
            <a href="https://sel4.systems" class="skip-icon">
              <img class="img-responsive" src="/assets/logo-text-white.svg" alt="seL4 logo" />
            </a>
    </li>
    <li class="col-xs-12 col-md-10 menu">
      <nav aria-label="Banner links">
        <h2><a href="/Resources" />Resources</h2>
        <h2><a href="/processes" />Contributing</a></h2>
        <h2><a href="/projects" />Projects</h2>
        <h2><a href="/Tutorials" />Tutorials</h2>
        <iframe title="DuckDuckGo search bar" src="https://duckduckgo.com/search.html?site=docs.sel4.systems&prefill=Search%20sel4.systems" style="overflow:hidden;margin-bottom:10px; padding:0;height:40px;float:right;border-width: 0px"></iframe>
      </nav>
    </li>
  </ul>
  <div class="clear"></div>
  
<div class="breadcrumbs bootstrap hidden-sm-down">
  <nav class="sel-breadcrumb" aria-label="Breadcrumb" >
    <ol class=" list-unstyled" vocab="http://schema.org/" typeof="BreadcrumbList">
      
      
        

        

        <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <a property="item" typeof="WebPage" href="/">
              <span property="name"><b>seL4 Docs</b></span>
            </a>
            <meta property="position" content="1" />
        </li>
      
        

        

        <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <a property="item" typeof="WebPage" href="/Hardware/">
              <span property="name"><b>Supported platforms</b></span>
            </a>
            <meta property="position" content="2" />
        </li>
      
        

        
          <li class="breadcrumb-item" property="itemListElement" typeof="ListItem">
            <span property="name">PC99</span>
            <meta property="position" content="3" /></li>
          
    </ol>
  </nav>
  <nav class="sel-version" aria-label="Current Versions">
    <ol class="list-unstyled">
      <li class="list-unstyled text-right" style="margin-left:auto; padding:0rem 0rem;">
        Current versions:</li>
      <li class="list-unstyled text-right">
      <a href="/releases/sel4/13.0.0"><b>seL4-13.0.0</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/microkit/1.4.1"><b>microkit-1.4.1</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/camkes/camkes-3.11.0"><b>camkes-3.11.0</b></a></li>
      <li class="list-unstyled text-right">
      <a href="/releases/capdl/0.3.0"><b>capDL-0.3.0</b></a></li>
      </ol>
  </nav>
  <div class='clear'></div>
</div>


</header>

    <main>
      <div class="row">
  <div class="hidden-xs col-sm-4 col-md-3 col-lg-2">
    


<div class="sidebar">
















</div>

  </div>
  <div class="col-sm-8 col-md-9 col-lg-8 main">
    
    <div class="content">
      <h1 id="pc99">PC99</h1>
<p>seL4 runs on 32-bit ia32 and 64-bit x64 machines, on qemu and on
hardware.</p>

<h2 id="simulation">Simulation</h2>

<p>Checkout the sel4test project using repo as per <a href="/seL4Test">seL4Test</a></p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>repo init <span class="nt">-u</span> https://github.com/seL4/sel4test-manifest.git
repo <span class="nb">sync
mkdir </span>cbuild
<span class="nb">cd </span>cbuild
../init-build.sh <span class="nt">-DPLATFORM</span><span class="o">=</span>x86_64 
<span class="c"># The default cmake wrapper sets up a default configuration for the target platform.</span>
<span class="c"># To change individual settings, run `ccmake` and change the configuration</span>
<span class="c"># parameters to suit your needs.</span>
ninja
<span class="c"># If your target binaries can be executed in an emulator/simulator, and if</span>
<span class="c"># our build system happens to support that target emulator, then this script</span>
<span class="c"># might work for you:</span>
./simulate

</code></pre></div></div>
<p>If you plan to use the ./simulate script, please be sure to add the
<code class="language-plaintext highlighter-rouge">-DSIMULATION=1</code> argument when running cmake.</p>

<p>Generated binaries can be found in the <code class="language-plaintext highlighter-rouge">images/</code> directory.</p>

<p>Please substitute <code class="language-plaintext highlighter-rouge">-DPLATFORM=ia32</code> in place of <code class="language-plaintext highlighter-rouge">-DPLATFORM=x86_64</code> if you would
prefer to build 32-bit binaries.</p>

<h2 id="real-hardware">Real Hardware</h2>
<p>When running on real hardware console output will be
over serial. You will need to plug a serial cable into your machine to
see any output.</p>

<p>The build system produces a multiboot compliant image for x86; a grub2
stanza is here, but we usually boot via PXE for convenience.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>menuentry "Load seL4 VM" --class os {
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos2)'
    multiboot /boot/sel4kernel
    module /boot/sel4rootserver
}
</code></pre></div></div>

<p>Booting via PXEBOOT using
<a href="http://www.syslinux.org/wiki/index.php?title=PXELINUX">syslinux PXELINUX</a> requires setting up a tftp and dhcp server on the network
that the machine you want to boot is connected to. This
<a href="https://debian-administration.org/article/478/Setting_up_a_server_for_PXE_network_booting">debian page</a> explains how to setup a tftp and dhcp server, and the
<a href="http://www.syslinux.org/wiki/index.php?title=Download">syslinux</a>
site has a download for pxelinux which we load over PXEBOOT
that then can load seL4. The configuration for pxelinux.cfg/default is
provided below.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>label seL4
        kernel mboot.c32
        append kernel-ia32-pc99 --- apps-ia32-pc99
</code></pre></div></div>

<h2 id="booting-off-usb-with-syslinux">Booting off USB with syslinux</h2>

<p>Use syslinux to create a bootable USB stick as follows.</p>

<p>Assuming your USB flash drive is at <code class="language-plaintext highlighter-rouge">/dev/sdb</code> with a FAT partition at
<code class="language-plaintext highlighter-rouge">/dev/sdb1</code>:</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>install-mbr /dev/sdb
syslinux <span class="nt">--install</span> /dev/sdb1
mount /dev/sdb1 /mnt
<span class="nb">cp </span>images/sel4test-driver-image-ia32-pc99 /mnt/rootserver
<span class="nb">cp </span>images/kernel-ia32-pc99 /mnt/sel4kernel
<span class="nb">cat</span> <span class="o">&gt;</span> /mnt/syslinux.cfg <span class="o">&lt;&lt;</span><span class="no">EOF</span><span class="sh">
SERIAL 0 115200
DEFAULT seL4test
LABEL seL4test
    kernel mboot.c32
    append sel4kernel --- rootserver
</span><span class="no">EOF
</span><span class="nb">cp</span> /usr/lib/syslinux/modules/bios/mboot.c32 /mnt
<span class="nb">cp</span> /usr/lib/syslinux/modules/bios/libcom32.c32 /mnt
umount /mnt
</code></pre></div></div>

<p>Use <code class="language-plaintext highlighter-rouge">fdisk</code> to make sure the first partition is bootable.</p>

<p>And you’re done. Output will come on the serial port</p>

<p>Some more information about some of the hardware we use:</p>

<ul>
  <li><a href="/CMA34DBMC">CMA34DBMC</a></li>
</ul>


    </div>
  </div>
</div>

    </main>
    


<footer class="site-footer">

  <h2 class="footer-heading">seL4 docs</h2>

  <div class="footer-col-wrapper">

    <div class="col-md-2">
      



<ul class="social-media-list">
  <li><a href="https://github.com/sel4"><i class="fab fa-github"></i> <span class="username">sel4</span></a></li><li><a href="https://github.com/sel4proj"><i class="fab fa-github"></i> <span class="username">sel4proj</span></a></li>
</ul>

    </div>

    <div class="col-md-8">
      <ul class="list-unstyled">
        <li>
          This site is for displaying seL4 related documentation.  Pull requests are welcome.
        </li>
        
          <li>
            Site last updated: Fri Feb 7 10:17:38 2025 +1100 ee78c8857c
          </li>
          <li>
                Page last updated: Mon Nov 30 09:25:37 2020 +1100 977ed44f17
          </li>
        
      </ul>
    </div>
    <div class="col-md-2">
<a href="https://github.com/seL4/docs/blob/master/Hardware/IA32.md">View page on GitHub</a>
      <br />
      <a href="https://github.com/seL4/docs/edit/master/Hardware/IA32.md">Edit page on GitHub</a>
      <br />
      <a href="/sitemap">Sitemap</a>
    </div>

  </div>

</footer>

  </body>
</html>
